package com.ruoyi.repay.controller;

import com.github.pagehelper.PageInfo;
import com.ruoyi.repay.domain.RepaymentLog;
import com.ruoyi.repay.domain.RepaymentPlan;
import com.ruoyi.repay.domain.RepaymentSchedule;
import com.ruoyi.repay.domain.vo.ResultVo;
import com.ruoyi.repay.domain.vo.SearchVo;
import com.ruoyi.repay.service.RepayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

//@RequestMapping("repay")
@RestController
@CrossOrigin
public class RepayController {
    @Autowired
    private RepayService repayService;

////添加还款记录
//    @PostMapping("save")
//    public ResultVo addrepaymentschedule(@RequestBody RepaymentSchedule repaymentSchedule){
//        return repayService.addrepaymentschedule(repaymentSchedule);
//    }

//    查询还款信息
//@RequestMapping("repayList")
//   public ResultVo repayList(String userInfoCode){
//        return repayService.repayList(userInfoCode);
//    }

//    添加还款编号
    @RequestMapping("add")
    public ResultVo add(Integer id){
        return repayService.add(id);
    }

    @RequestMapping("repaylist2")
    public ResultVo repaylist2(){
        return repayService.repaylist2();

    }

}
